package com.zjj.learn.designmodel.pattern.decorator;

/** 抽象装饰角色
 * *** @author zjj_admin
 * *** 2022/4/11 21:43
 */
public abstract class Garnish extends FastFood {

    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        //为鸡蛋或培根标价
        super(price,desc);
        this.fastFood = fastFood;
    }

}
